/**
 * 
 */
package com.an.java8.testlambda;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

/**
 * @author Administrator
 *
 */
public class ProcessFile {

	public static void processFile(BufferedReaderProcessor processor) throws IOException {
		try (BufferedReader bufferedReader = new BufferedReader(new FileReader(new File("F:/1.txt")))) {
			System.out.println("读取到：" + processor.process(bufferedReader));
		}
	}
}
